<html>
    <head>
        <title>main</title>
    </head>
    <body style="background-color: aquamarine">
        <input type="button" value="登出" onclick="logout()">
    </body>
    <script src="/securityDemo/js/JQuery.js"></script>
    <script type="text/javascript">
        logout = function () {
            $.get("/securityDemo/common/logout",function (response) {
                location.href = "login.html"; //资源路径
            })
        }
    </script>

</html>